package ernie.database;

import java.util.ArrayList;
import java.util.List;

import stock.Sale;

/**
 * @author Filip Lindqvist <buggfille@gmail.com>
 * @created 11:04:35 PM - Nov 19, 2011
 */
public class DummyDatabase implements Database {
    @Override
    public void saveEntries(List<Sale> entries) {

    }

    @Override
    public List<Sale> loadEntries(long since, String name) {
        List<Sale> list = new ArrayList<Sale>();
        list.add(new Sale(1, "name", 10, 130));
        list.add(new Sale(2, "name", 22, 150));
        list.add(new Sale(3, "name", 15, 50));
        list.add(new Sale(4, "name", 25, 200));
        list.add(new Sale(5, "name", 21, 100));
        return list;
    }

    @Override
    public Long getLatestTime(String name) {
        return 0L;
    }
}
